﻿<%@ Page Language="C#" ContentType="text/xml" AutoEventWireup="true" CodeBehind="rss.aspx.cs" Inherits="DeansWsccProject.rss" %>
<asp:repeater id="repeaterRSS" runat="server">
    <HeaderTemplate>  
        <rss version="2.0">
            <channel>
                <title>Therapy eBooks</title>
                <link>http://localhost:56158/</link>  
                <description>Helping counsellors and psychotherapists to write and publish e-books.</description> 
    </HeaderTemplate>
    <ItemTemplate>  
        <item>  
            <title><%# formatForXML(DataBinder.Eval(Container.DataItem, "eBookTitle")) %></title>
            <pubDate><%# String.Format("{0:R}", DataBinder.Eval(Container.DataItem, "eBookReleaseDate")) %></pubDate>
            <description><%# formatForXML(DataBinder.Eval(Container.DataItem, "eBookDescription")) %>
                         Rating: <%# DataBinder.Eval(Container.DataItem, "eBookRating") %> out of 10</description>
            <link>http://localhost:56158/<%# DataBinder.Eval(Container.DataItem, "eBookDownloadUrl") %></link>
        </item>  
    </ItemTemplate>
    <FooterTemplate>
            </channel>
        </rss>  
    </FooterTemplate>  
</asp:repeater>